import request from '@/utils/request'



// 获取能耗实时数据
export function GetRealEnergyData(deviceid) {
  return request({
    url: '/api/DeviceData/GetRealEnergyData'+`?deviceid=${deviceid}`,
    method: 'get',
  })
}



// 获取通道实时数据
export function GetRealPassData(deviceid) {
    return request({
      url: '/api/DeviceData/GetRealPassData'+`?deviceid=${deviceid}`,
      method: 'get',
    })
  }
  


// 获取当月能耗数据
export function MonthEnergyUsed(deviceid) {
  return request({
    url: '/api/DeviceData/MonthEnergyUsed'+`?deviceid=${deviceid}`,
    method: 'get',
  })
}



// 获取当月产量数据
export function MonthChanLiang(deviceid) {
  return request({
    url: '/api/DeviceData/MonthChanLiang'+`?deviceid=${deviceid}`,
    method: 'get',
  })
}